<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="ui" uri="http://com.am.tag" %>
<c:set var="path" value="${pageContext.request.contextPath }"></c:set>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>医疗管理系统</title>
		<link rel="stylesheet" href="css/tripoli.simple.css" type="text/css"></link>
		<link rel="stylesheet" href="css/layout.css" type="text/css"></link>
		<script type="text/javascript" src="${path}/js/public/jquery-1.7.2.min.js"></script>
		<script type="text/javascript">
		
			$().ready(function(){
				
				$("#side-nav .button").click(function(){
					$(this).parent().parent().find("li").each(function(){
						$(this).find("ul").hide();
						$(this).removeClass("active").addClass("inactive side-nav-item").find(".expand").removeClass("expanded");
					});
					$(this).next("ul").show();
					$(this).parent().removeClass("inactive side-nav-item").addClass("active").find(".expand").addClass("expanded"); 
				});
			});
			
		</script>
	</head>

	<body style="padding:0px;">
		<div style="width: 100%;height: 100%">
				<div id="sidebar" class="bImg" style="width: 15%; height: 100%; margin: 0;">
					<ul id="side-nav">
						<ui:Permission value="register_charge">
							<li class="inactive side-nav-item side-nav-item"> 
								<a href="#" title="挂号收费" class="button ">
									<strong>
										<img src="${path}/images/menu/register_charge.png" alt="挂号收费" class="icon ">
										<span class="title">挂号收费</span>
										
									</strong>
								</a>
								<ul style="display: none;">
									<ui:Permission value="/MedicalSystem/jsp/register/registerList.jsp">
										<li><a href="${path}/jsp/register/registerList.jsp" title="门诊挂号" target="main"><span style="color:#fff;font-weight:bold">门诊挂号</span></a></li>
									</ui:Permission>
									<ui:Permission value="/MedicalSystem/jsp/charge/chargeList.jsp">
										<li><a href="${path}/jsp/charge/chargeList.jsp" title="门诊收费" target="main"><span style="color:#fff;font-weight:bold">门诊收费</span></a></li>
									</ui:Permission>
									<ui:Permission value="/MedicalSystem/jsp/charge/reChargeList.jsp">
										<li><a href="${path}/jsp/charge/reChargeList.jsp" title="收费补打" target="main"><span style="color:#fff;font-weight:bold">收费补打</span></a></li>
									</ui:Permission>
								</ul>
							</li>
						</ui:Permission>
						
						<ui:Permission value="doctor_workspace">
							<li class="inactive side-nav-item side-nav-item"> 
								<a href="#" title="医生工作站" class="button">
									<strong>
										<img src="${path}/images/menu/doctor.png" alt="医生工作站" class="icon ">
										<span class="title">医生工作站</span>
										
									</strong>
								</a>
								<ul style="display: none;">
									<ui:Permission value="/MedicalSystem/jsp/doctor/doctorTotal.jsp">
										<li><a href="${path}/jsp/doctor/doctorTotal.jsp" title="医生诊断" target="main"><span style="color:#fff;font-weight:bold">医生诊断</span></a></li>
									</ui:Permission>
								</ul>
							</li>
						</ui:Permission>
						<ui:Permission value="nurse">
							<li class="inactive side-nav-item"> 
								<a href="#" title="护士工作站" class="button">
									<strong>
										<img src="${path}/images/menu/nurse.png" alt="护士工作站" class="icon ">
										<span class="title">护士工作站</span>
										
									</strong>
								</a>
								<ul style="display: none;">
									<ui:Permission value="/MedicalSystem/jsp/nurse/dressingList.jsp">
										<li><a href="${path}/jsp/nurse/dressingList.jsp" title="换药查询" target="main"><span style="color:#fff;font-weight:bold">换药查询</span></a></li>
									</ui:Permission>
									<ui:Permission value="/MedicalSystem/jsp/nurse/injectionList.jsp">
										<li><a href="${path}/jsp/nurse/injectionList.jsp" title="注射查询" target="main"><span style="color:#fff;font-weight:bold">注射查询</span></a></li>
									</ui:Permission>
								</ul>
							</li>
						</ui:Permission>
						<ui:Permission value="person">
							<li class="inactive side-nav-item"> 
								<a href="#" title="人员管理" class="button">
									<strong>
										<img src="${path}/images/menu/personnel.png" alt="人员管理" class="icon ">
										<span class="title">人员管理</span>
										
									</strong>
								</a>
								<ul style="display: none;">
									<ui:Permission value="person">
										<li><a href="${path}/jsp/person/personList.jsp" title="人员信息管理" target="main"><span style="color:#fff;font-weight:bold">人员信息管理</span></a></li>
									</ui:Permission>
									<ui:Permission value="/MedicalSystem/jsp/person/patientRecordList.jsp">
										<li><a href="${path}/jsp/person/patientRecordList.jsp" title="病情分析" target="main"><span style="color:#fff;font-weight:bold">病情分析</span></a></li>
									</ui:Permission>
								</ul>
							</li>
						</ui:Permission>
						<ui:Permission value="drug">
							<li class="inactive side-nav-item"> 
								<a href="#" title="药品管理" class="button">
									<strong>
										<img src="${path}/images/drug/drug.png" alt="药品管理" class="icon ">
										<span class="药品管理">药品管理</span>
										
									</strong>
								</a>
								<ul style="display: none;">
									<ui:Permission value="/MedicalSystem/jsp/doctor/prescriptionPrice.jsp">
										<li><a href="${path}/jsp/doctor/prescriptionPrice.jsp" title="处方划价" target="main"><span style="color:#fff;font-weight:bold">处方划价</span></a></li>
									</ui:Permission>
									<ui:Permission value="/MedicalSystem/jsp/drug/yfManage.jsp">
										<li><a href="${path}/jsp/drug/yfManage.jsp" title="药房管理" target="main"><span style="color:#fff;font-weight:bold">药房管理</span></a></li>
									</ui:Permission>
									<ui:Permission value="/MedicalSystem/jsp/drug/ykManage.jsp">
										<li><a href="${path}/jsp/drug/ykManage.jsp" title="药库管理" target="main"><span style="color:#fff;font-weight:bold">药库管理</span></a></li>
									</ui:Permission>
									<ui:Permission value="/MedicalSystem/jsp/drug/drugCheck.jsp">
										<li><a href="${path}/jsp/drug/drugCheck.jsp" title="药品盘点" target="main"><span style="color:#fff;font-weight:bold">药品盘点</span></a></li>
									</ui:Permission>
									<ui:Permission value="/MedicalSystem/jsp/drug/buyPan.jsp">
										<li><a href="${path}/jsp/drug/buyPan.jsp" title="购药计划" target="main"><span style="color:#fff;font-weight:bold">购药计划</span></a></li>
									</ui:Permission>
									<ui:Permission value="/MedicalSystem/jsp/drug/approveList.jsp">
										<li><a href="${path}/jsp/drug/approveList.jsp" title="我的审批" target="main"><span style="color:#fff;font-weight:bold">我的审批</span></a></li>
									</ui:Permission>
								</ul>
							</li>
						</ui:Permission>
						<ui:Permission value="systemManagement">
							<li class="inactive side-nav-item"> 
								<a href="#" title="系统管理" class="button">
									<strong>
										<img src="${path}/images/menu/system_config.png" alt="系统管理" class="icon ">
										<span class="title">系统管理</span>
														
									</strong>
								</a>
								<ul style="display: none;">
									<ui:Permission value="/MedicalSystem/jsp/user/userList.jsp">
										<li><a href="${path}/jsp/user/userList.jsp" title="用户管理" target="main"><span style="color:#fff;font-weight:bold">用户管理</span></a></li>
									</ui:Permission>
									<ui:Permission value="/MedicalSystem/jsp/role/roleList.jsp">
										<li><a href="${path}/jsp/role/roleList.jsp" title="角色管理" target="main"><span style="color:#fff;font-weight:bold">角色管理</span></a></li>
									</ui:Permission>
									<ui:Permission value="/MedicalSystem/jsp/dictionary/dictionaryTree.jsp">
										<li><a href="${path}/jsp/dictionary/dictionaryTree.jsp" title="数据字典" target="main"><span style="color:#fff;font-weight:bold">数据字典</span></a></li>
									</ui:Permission>
									<ui:Permission value="/MedicalSystem/jsp/define/costDefinitionList.jsp">
										<li><a href="${path}/jsp/define/costDefinitionList.jsp" title="费用定义" target="main"><span style="color:#fff;font-weight:bold">费用定义</span></a></li>
									</ui:Permission>
									<ui:Permission value="/MedicalSystem/jsp/define/costDefinitionList.jsp">
										<li><a href="${path}/jsp/define/messageEdit.jsp" title="系统设置" target="main"><span style="color:#fff;font-weight:bold">系统设置</span></a></li>
									</ui:Permission>
								</ul>
							</li>
						</ui:Permission>
						<ui:Permission value="statistics">
							<li class="inactive side-nav-item"> 
								<a href="#" title="数据统计" class="button">
									<strong>
										<img src="${path}/images/menu/graph.png" alt="数据统计" class="icon ">
										<span class="title">数据统计</span>
														
									</strong>
								</a>
								<ul style="display: none;">
									<ui:Permission value="/MedicalSystem/jsp/chart/doctorChart.jsp">
										<li><a href="${path}/jsp/chart/doctorChart.jsp" title="医生工作量统计" target="main"><span style="color:#fff;font-weight:bold">医生工作量</span></a></li>
									</ui:Permission>
									<ui:Permission value="/MedicalSystem/jsp/chart/patientRecordChart.jsp">
										<li><a href="${path}/jsp/chart/patientRecordChart.jsp" title="看病数量" target="main"><span style="color:#fff;font-weight:bold">看病数量</span></a></li>
									</ui:Permission>
									<ui:Permission value="/MedicalSystem/jsp/chart/amountChart.jsp">
										<li><a href="${path}/jsp/chart/amountChart.jsp" title="门诊收入" target="main"><span style="color:#fff;font-weight:bold">门诊收入</span></a></li>
									</ui:Permission>
								</ul>
							</li>
						</ui:Permission>
					</ul>
			</div>
			<div style="float:right;width: 85%;height:100%;">
				<iframe name="main" src="${path}/main.jsp" width="100%" height="100%" frameborder="0"></iframe>
			</div>
		</div>
	</body>
</html>


